package com.yida.gwj.vote.outside.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yida.common.core.annotation.Excel;
import com.yida.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * @author lqq
 * @date 2023-03-17
 */
@ApiModel("业主访问记录对象")
public class GwjVoteOwnerLoginInfo extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("访问ID")
	@Excel(name = "访问ID")
	private Long infoId;

	@ApiModelProperty("业主姓名")
	@Excel(name = "业主姓名")
	private String ownerName;

	@ApiModelProperty("登录IP地址")
	@Excel(name = "登录IP地址")
	private String ipaddr;

	@ApiModelProperty("登录状态（0成功 1失败）")
	@Excel(name = "登录状态", readConverterExp = "0=成功,1=失败")
	private String status;

	@ApiModelProperty("提示信息")
	@Excel(name = "提示信息")
	private String msg;

	@ApiModelProperty("访问时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date accessTime;

	public void setInfoId(Long infoId) {
		this.infoId = infoId;
	}

	public Long getInfoId() {
		return infoId;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setIpaddr(String ipaddr) {
		this.ipaddr = ipaddr;
	}

	public String getIpaddr() {
		return ipaddr;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getMsg() {
		return msg;
	}

	public void setAccessTime(Date accessTime) {
		this.accessTime = accessTime;
	}

	public Date getAccessTime() {
		return accessTime;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteOwnerLoginInfo{");
		sb.append("infoId=").append(infoId);
		sb.append(", ownerName='").append(ownerName).append('\'');
		sb.append(", ipaddr='").append(ipaddr).append('\'');
		sb.append(", status='").append(status).append('\'');
		sb.append(", msg='").append(msg).append('\'');
		sb.append(", accessTime=").append(accessTime);
		sb.append('}');
		return sb.toString();
	}
}
